package ie.lawlor.amvc.config;

import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.beans.factory.support.ChildBeanDefinition;
import org.w3c.dom.Element;

class ApplicationDefinitionParser extends AbstractTriadDefinitionParser {
	protected ChildBeanDefinition createAndRegisterTriad(Element element,
			BeanDefinitionRegistry registry) {
		ChildBeanDefinition mainTriadBeanDefinition = createTriadBeanDefinition(element);
		registry.registerBeanDefinition(APPLICATION_TYPE, mainTriadBeanDefinition);
		return mainTriadBeanDefinition;
	}
}
